import {handleActions} from 'redux-actions';
import {fetchSession, fetchProfile} from '../actions/user';

export default handleActions({
  [fetchSession](state, action) {
    return Object.assign({}, state, {sessionUser: action.payload});
  },
  [fetchProfile](state, action) {
    return Object.assign({}, state, {profile: action.payload});
  }
}, {
  sessionUser: void 0,
  profile: {}
});